package com.kayang.feishu.pojo.msg;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Map;

@Data
public class PostMsg  extends BaseMsg{

    @NotBlank(message = "msg_type 不能为空")
    protected String msg_type = "post";


    /**
     *{
     * 	"zh_cn": {
     * 		"title": "我是一个标题",
     * 		"content": [
     * 			[
     *                                {
     * 					"tag": "text",
     * 					"text": "第一行:",
     * 					"style": ["bold", "underline"]
     *
     *                },
     *                {
     * 					"tag": "a",
     * 					"href": "http://www.feishu.cn",
     * 					"text": "超链接",
     * 					"style": ["bold", "italic"]
     *                },
     *                {
     * 					"tag": "at",
     * 					"user_id": "ou_1avnmsbv3k45jnk34j5",
     * 					"style": ["lineThrough"]
     *                }
     * 			],
     *           	[{
     * 				"tag": "img",
     * 				"image_key": "img_7ea74629-9191-4176-998c-2e603c9c5e8g"* 			}],
     * 			[
     *                {
     * 					"tag": "text",
     * 					"text": "第二行:",
     * 					"style": ["bold", "underline"]
     *                },
     *                {
     * 					"tag": "text",
     * 					"text": "文本测试"
     *                }
     * 			],
     *           	[{
     * 				"tag": "img",
     * 				"image_key": "img_7ea74629-9191-4176-998c-2e603c9c5e8g"
     *            }],
     *           	[{
     * 				"tag": "media",
     * 				"file_key": "file_v2_0dcdd7d9-fib0-4432-a519-41d25aca542j",
     * 				"image_key": "img_7ea74629-9191-4176-998c-2e603c9c5e8g"
     *            }],
     *           	[{
     * 				"tag": "emotion",
     * 				"emoji_type": "SMILE"
     *            }],
     * 			[{
     * 				"tag": "hr"
     *            }],
     * 			[{
     * 				"tag": "code_block",
     * 				"language": "GO",
     * 				"text": "func main() int64 {\n    return 0\n}"
     *            }],
     * 			[{
     * 				"tag": "md",
     * 				"text": "**mention user:**<at user_id=\"ou_xxxxxx\">Tom</at>\n**href:**[Open Platform](https://open.feishu.cn)\n**code block:**\n```GO\nfunc main() int64 {\n    return 0\n}\n```\n**text styles:** **bold**, *italic*, ***bold and italic***, ~underline~,~~lineThrough~~\n> quote content\n\n1. item1\n    1. item1.1\n    2. item2.2\n2. item2\n --- \n- item1\n    - item1.1\n    - item2.2\n- item2"
     *            }]
     * 		]* 	},
     * 	"en_us": {
     * 		...
     * 	}
     * }
     * */
    @NotNull(message = "content 不能为空")
    private Map content;




}
